﻿@model IEnumerable<ThesisSystem.Models.SysMenu>
@{
    Layout = null;
}
<!DOCTYPE html>
<html>
<head>
    <title>头部导航</title>
    <link href="@Url.Content("~/Content/CSS/Common.css")" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/Content/CSS/Page.css")" rel="stylesheet" type="text/css" />
    <script src="@Url.Content("~/Scripts/jquery-min.js")" type="text/javascript"></script>
</head>
<body>
<div id="header">
    <div class="logo">
        <img src="@Url.Content("~/Content/images/man_loogo.png")" height="54" width="780" alt="论文答辩评审系统" />
    </div>
    @{Html.RenderAction("UserInfo", "Account");}
    <div id="topNav">
        <div class="nav">
            <ul>
                @foreach(var menu in Model)
                {
                    <li><a href="@Url.Content("~/Menu/Left/"+menu.MenuID)" target="leftFrame">@menu.Title</a></li>
                }
                @if(Roles.IsUserInRole("Administrators"))
                {
                    <li><a href="@Url.Content("~/Menu/Manager/")" target="leftFrame">菜单管理</a></li>
                }
            </ul>
        </div>
        <div class="sub_info">
            <img src="@Url.Content("~/Content/Images/hi.gif")" />
            <span class="showText">欢迎使用论文答辩评审系统</span>
        </div>
    </div>
</div>
<script type="text/javascript">
    $(function () {
        $("#topNav ul li:eq(0)").addClass("now");
        $("#topNav ul li").click(function () {
            $("#topNav ul li").removeClass("now");
            $(this).addClass("now");
        });
    });
</script>
</body>
</html>
